package com.ruoyi.project.er.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.wf.domain.WfProcessDef;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


/**
 * 差错类型参数对象 paea_er_type
 *
 * @author ruoyi
 * @date 2020-03-14
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName(value = "paea_er_type")
@JsonIgnoreProperties({"handler"})
public class PaeaErType implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type=IdType.UUID)
    private String id;

    /** 差错类型代码 */
    @Excel(name = "差错类型代码")
    private String code;

    /** 差错类型名称 */
    @Excel(name = "差错类型名称")
    private String typeName;

    /** 差错类型描述 */
    @Excel(name = "差错类型描述")
    private String description;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 期限天数 */
    private Integer limitDay;

    /** 父类型ID */
    private Integer parentId;

    /** 差错等级 */
    private String grade;

    /** 差错路径 */
    private String path;

    /** 差错处理流程定义ID */
    private String procDefId;


    /** 流程环节(scan-扫描；input-补录；forceInput-强补；other-其他) */
    @Excel(name = "流程环节(scan-扫描；input-补录；forceInput-强补；other-其他)")
    private String processNode;

    /** 是否自动下发(0-手动启动；1-自动启动) */
    @Excel(name = "是否自动下发(0-手动启动；1-自动启动)")
    private String autoStart;

    /** 用户是否存在此岗位标识 默认不存在 */
    private boolean flag = false;
    @TableField(exist = false)
    private WfProcessDef wfProcessDef;
    @TableField(exist = false)
    private PaeaErGrade paeaErGrade;
}
